using System;
using MammothMicro.SilverSocket.Protocol.System;

namespace MammothMicro.SilverSocket.Shared
{
    /// <summary>
    /// The message received event args.
    /// </summary>
    public class MessageReceivedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageReceivedEventArgs"/> class.
        /// </summary>
        /// <param name="sessionId">
        /// The session id.
        /// </param>
        /// <param name="message">
        /// The message.
        /// </param>
        public MessageReceivedEventArgs(string sessionId, IDuplexMessage message)
        {
            this.SessionId = sessionId;
            this.Message = message;
        }
     
        /// <summary>
        /// Gets or sets SessionId.
        /// </summary>
        public string SessionId{get; set; }

        /// <summary>
        /// Gets or sets Message.
        /// </summary>
        public IDuplexMessage Message{get; set; }
    }
}